export function isInTime(startTime, duration, stamp) {
	let date = new Date(startTime);
	let startStamp = +date;
	date.setHours(date.getHours() + duration);
	let endStamp = +date;
	return startStamp <= stamp && stamp < endStamp;
}

export function isOverTime(startTime, duration) {
	let current = Date.now()

	let date = new Date(startTime);
	date.setHours(date.getHours() + duration);

	return current < date.getTime()
}